const express = require('express')
let application = express()

application.use('/my', (req, res, next) => {
    //    用户是否登录
    // let isLogin = false
    let isLogin = true
    if (isLogin) {
        next()
    }
    res.send('你还没登录呢！')
})
application.get('/my', (req, res) => {
    res.send('我的')
})
application.listen(3007)
console.log('请访问 http://localhost:3007');
